package com.bauer.mq.rabbitmq.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: weirui
 * @create: 2020-09-22 14:19
 **/
@Data
@Component
@EnableConfigurationProperties(RabbitMQProperties.class)
@ConfigurationProperties(prefix = "rabbit.mq")
public class RabbitMQProperties {

    private String host;

    private String userName;

    private String password;

    private int port;

}
